package com.ruoyi.web.controller.record;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.record.domain.query.SummaryRecordQuery;
import com.ruoyi.record.service.SummaryRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 * @author helen
 * @date 2024/02/19 14:40
 */
@RestController
@RequestMapping("/backlog")
public class SummaryRecordController extends BaseController {


    @Autowired
    private SummaryRecordService summaryRecordService;


    /**
     * 查询统计信息
     */
    @PostMapping("/selectSummaryRecordByYear")
    public AjaxResult selectSummaryRecordByYear(@RequestBody SummaryRecordQuery summaryQuery) {
        return AjaxResult.success(summaryRecordService.selectSummaryRecordByYear(summaryQuery));
    }




}
